﻿<%@ Page Title="" Language="C#" MasterPageFile="~/views/customer/customermaster.master" AutoEventWireup="true" CodeFile="yhfk.aspx.cs" Inherits="views_customer_yhfk" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" Runat="Server">
    <style>
        .abbc {
          
          color: white; /* 设置字体颜色为白色 */
          font-size:20px;
        }
        .label-hover:hover 
        { 
            color:antiquewhite;
            font-weight: bold;
            font-size:50px;

        } 
        .label-block 
        { 
            display: block; 

        } 
    </style>
    <div class="container-fluid">
       <div class="row">
           <div class="col">
               <h3 class="text-center" style="color: white">体验反馈</h3>
               <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="ReviewID" DataSourceID="LinqDataSource1" ForeColor="Black" GridLines="Vertical" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                   <AlternatingRowStyle BackColor="#CCCCCC" />
                   <Columns>
                       <asp:TemplateField>
                           <HeaderTemplate>
                               <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" Text="全选" OnCheckedChanged="CheckBox2_CheckedChanged" />
                           </HeaderTemplate>
                           <ItemTemplate>
                               <asp:CheckBox ID="CheckBox1" runat="server" />
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:BoundField DataField="ReviewID" HeaderText="反馈编号" InsertVisible="False" ReadOnly="True" SortExpression="ReviewID" />
                       <asp:BoundField DataField="TrialID" HeaderText="体验编号" SortExpression="TrialID" />
                       <asp:BoundField DataField="ConsumerID" HeaderText="用户编号" SortExpression="ConsumerID" />
                       <asp:BoundField DataField="ConsumerName" HeaderText="用户姓名" SortExpression="ConsumerName" />
                       <asp:BoundField DataField="ProductName" HeaderText="商品名称" SortExpression="ProductName" />
                       <asp:BoundField DataField="ConsumerAge" HeaderText="用户年龄" SortExpression="ConsumerAge" />
                       <asp:BoundField DataField="ReviewContent" HeaderText="反馈情况" SortExpression="ReviewContent" />
                       <asp:BoundField DataField="ReviewScore" HeaderText="反馈分数" SortExpression="ReviewScore" />
                       <asp:BoundField DataField="Reviewnr" HeaderText="建议内容" SortExpression="Reviewnr" />
                       <asp:CommandField HeaderText="选择" ShowSelectButton="True" />
                   </Columns>
                   <FooterStyle BackColor="#CCCCCC" />
                   <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                   <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                   <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                   <SortedAscendingCellStyle BackColor="#F1F1F1" />
                   <SortedAscendingHeaderStyle BackColor="#808080" />
                   <SortedDescendingCellStyle BackColor="#CAC9C9" />
                   <SortedDescendingHeaderStyle BackColor="#383838" />
               </asp:GridView>
               <div class ="abbc"> 
                   <asp:Label ID="Label3" runat="server" Text="你选择的商品是：" CssClass="label-hover label-block" /> 
                   <asp:Label ID="Label1" runat="server" Text="申请用户平均年龄为：" CssClass="label-hover label-block" /> 
                   <asp:Label ID="Label2" runat="server" Text="商品平均分数为：" CssClass="label-hover label-block" /> 
                    <asp:Label ID="Label4" runat="server" Text="商品好评数量为：" CssClass="label-hover label-block" /> 
                    <asp:Label ID="Label5" runat="server" Text="商品中评数量为：" CssClass="label-hover label-block" /> 
                    <asp:Label ID="Label6" runat="server" Text="商品差评数量为：" CssClass="label-hover label-block" /> 
               <div class="col-md-4">         
               <asp:Button ID="Button1" runat="server" Text="导出Excel" Class=" btn-success btn" style="background-color:black;" Height="44px" Width="149px" OnClick="Button1_Click"/>
               </div>
               <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="PJTY.dal.DataClasses1DataContext" EntityTypeName="" TableName="Review">
               </asp:LinqDataSource>
               </div>
           </div>
        </div>
</asp:Content>

